import java.util.Scanner;

public class pp26
{
   public static void main (String[] args)
   {
//----------------------------------------------------------------------
// 1 H =3600 s      1 min =60 s
//-----------------------------------------------------------------------
   int a, b, c;
   double d;

  Scanner scan = new Scanner (System.in);

  System.out.print ("hour: ");
  a = scan.nextInt( );

   System.out.print ("minute: ");
  b = scan.nextInt( );

  System.out.print ("second: ");
  c = scan.nextInt( );

 d = a * 3600 + b * 60 + c;

  System.out.println ("total: " + d);
   }
}

